using Engine;
using Engine.OldSerialization;

namespace RuthlessConquest {
    public class GameJoinedMessage : Message {
        public class Serializer : ISerializer<GameJoinedMessage> {
            public void Serialize(InputArchive archive, ref GameJoinedMessage value) {
                archive.Serialize("GameState", ref value.GameState);
                archive.Serialize("TickMessages", ref value.TickMessages);
            }

            public void Serialize(OutputArchive archive, GameJoinedMessage value) {
                archive.Serialize("GameState", value.GameState);
                archive.Serialize("TickMessages", value.TickMessages);
            }
        }

        public GameState GameState;

        public DynamicArray<TickMessage> TickMessages;
    }
}